package com.biye.api.controller.admin;

import com.alibaba.fastjson.JSONObject;
import com.biye.api.service.TeacherService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @Author Maple.Chen
 * @Description Teacher
 * @Date 13:35 2021/4/4
 **/
@Controller
@RequestMapping(value = "/admin")
public class TeacherController {

    @Resource
    private TeacherService teacherService;

    // 职工与工号的映射【下拉框】
    @RequestMapping(value = "tea_list", method = RequestMethod.GET)
    @ResponseBody
    public JSONObject queryAllTeacherDropDownList(){
        return teacherService.queryAllTeacherDropDownList();
    }

    // 职工与职工ID的映射【下拉框】
    @RequestMapping(value = "tea_list2", method = RequestMethod.GET)
    @ResponseBody
    public JSONObject queryAllTeacherDropDownList2(){
        return teacherService.queryAllTeacherDropDownList2();
    }

}
